<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/base/thesis.js"></script>
<script type="text/javascript">
	$(function() {
		var majorList = ${majorList};
		thesisDataGrid('${pageContext.request.contextPath}',majorList);
	});
</script>
<!-- Data List -->
<div class="easyui-layout" fit="true" id="thesis-mainBody">
	
	<!-- Search panel start -->
	<div data-options="region:'north',title:'',border:false"
		style="overflow:hidden;padding:10px;" align="center" split="true">
		<form id="thesisSearchForm">
			<div class="searchmore">
				<label>专业名称:</label>
				<input type="text" id="thesisSearch_majorId" name="majorId" class="imoia_intxt easyui-combobox"
				 data-options="editable:false,panelHeight:100" style="width:200px;"/>
				<label>课题名称:</label>
				<input type="text" id="thesisSearch_thesisName" name="thesisName" class="imoia_intxt" style="width:150px;"/>
				
				<span class="imoia_more"><input id="thesisBtnSearch" type="button" value="搜索" class="imoia_searchmore"/></span>						
				<span class="imoia_all"><input id="thesisBtnClean" type="button" value="显示全部" class="imoia_showall"/></span>
			</div>
		</form>
	</div>
	<!--  Search panel end -->

	<!-- Data List -->
	<div data-options="region:'center',border:false" style="padding: 5px; height: 80%">
		<table id="thesis-data-list"></table>
	</div>
	
	<!-- Edit Win&Form -->
	<div id="thesis-edit-win" class="imoia_pop" style="width: 440px;">
		<div class="imoia_pop_title">
			<strong id="thesis-win-title">添加论文课题</strong><span class="imoia_pop_closed"
				onClick="popClosed('thesis-edit-win')">关闭</span>
		</div>
		<form id="thesis-info-form" class="ui-form" method="post">
			<div class="imoia_pop_con">
				<input type="hidden" name="id">
				<ul>
					<li>
						<strong>专业名称：</strong>
						<span><input class="imoia_intxt easyui-combobox" type="text" id="thesis_majorId" name="majorId" style="width: 200px"
						data-options="required:true,missingMessage:'请选择专业.',editable:false,panelHeight:100"  /></span>
					</li>
					<li>
						<strong>课题名称:</strong>
						<span><input class="imoia_intxt easyui-validatebox" type="text" id="thesis_thesisName" name="thesisName"
							data-options="required:true,missingMessage:'请输入课题名称.'" /></span>
					</li>
					<li>
						<strong>状态：</strong>
						<span><select class="imoia_intxt easyui-combobox" id="thesis_status" name="status" style="width:200px;"
							data-options="required:true,missingMessage:'请选择状态.',panelHeight:100" >
								<option value="1">正常</option> 
								<option value="2">弃用</option>
						</select></span>
					</li>
					<li>
						<strong>课题详情：</strong>
						<span><textarea id="thesis_thesisInfo" name="thesisInfo"
								 rows="100" cols="100" class="imoia_textarea"
								 style="min-width:200px; max-width:200px; max-height:100px;">
						</textarea></span>
					</li>
					<li>
						<strong>备注：</strong>
						<span><textarea id="thesis_remark" name="remark"
								 rows="100" cols="100" class="imoia_textarea"
								 style="min-width:200px; max-width:200px; max-height:100px;">
						</textarea></span>
					</li>
				</ul>
			</div>
			<div class="imoia_pop_btn">
				<span><input type="button" id="thesis-save" value="保存" class="imoia_pop_btn_save"
					onClick="thesisSave('${pageContext.request.contextPath}/superuser/addOrUpdateThesis.do')" />
				</span>
				<span><input type="button" id="thesis-close" value="关闭" class="imoia_pop_btn_closed" 
					onClick="popClosed('thesis-edit-win')" />
				</span>
			</div>
			<div class="imoia_pop_error" id="thesis-edit-error">
				<p></p>
			</div>
			<div class="imoia_pop_correct" id="thesis-edit-info">
				<p></p>
			</div>
		</form>
	</div>
</div>

